import request from '@/utils/request'

// 添加进油信息
export const addOilInfo = data => {
  return request({
    url: '/oilInlet/addOilInfo',
    method: 'post',
    data
  })
}

// 修改进油信息
export const updateOilInfo = data => {
  return request({
    url: '/oilInlet/updateOilInfo',
    method: 'put',
    data
  })
}

// 获取进油信息
export const getOilInfo = params => {
  return request({
    url: '/oilInlet/getOilInfo',
    method: 'get',
    params
  })
}

// 删除
export const destroy = data => {
  return request({
    url: '/oilInlet/destroy',
    method: 'delete',
    data
  })
}
